﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArmoryViewer
{
    public class UpdateProgressChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets the update progress percentage.
        /// </summary>
        /// <value>The progress.</value>
        public int Progress { get; protected set; }
        /// <summary>
        /// Gets the update message.
        /// </summary>
        /// <value>The message.</value>
        public string Message { get; protected set; }
        /// <summary>
        /// Gets the error that occured during the update.
        /// </summary>
        /// <value>The error.</value>
        public Exception Error { get; protected set; }

        public UpdateProgressChangedEventArgs(int progress) : this(progress, null, null) { }
        public UpdateProgressChangedEventArgs(int progress, string message) : this(progress, message, null) { }
        public UpdateProgressChangedEventArgs(int progress, string message, Exception error)
        {
            Progress = progress;
            Message = message;
            Error = error;
        }
    }
}
